package com.maserb.monitor.service.jwEducation;

import com.maserb.monitor.entity.JwEducationClobEntity;
import com.maserb.monitor.entity.JwEducationInfoEntity;
import com.maserb.monitor.entity.JwOrgEntity;
import com.maserb.monitor.entity.UserEntity;
import com.maserb.monitor.repository.JwEducationInfoRepository;
import com.maserb.monitor.repository.JwOrgRepository;
import com.maserb.monitor.service.base.JpaSpecificationService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


public interface JwOrgService extends JpaSpecificationService<JwOrgRepository, JwOrgRepository, JwOrgEntity, String> {
    Page<JwOrgEntity> findAll(Pageable pageable, String name);

    List<JwOrgEntity> findByName(String name);

    JwOrgEntity findByDid(Long did);

    List<JwOrgEntity> findByType(String type);

    List<JwOrgEntity> findAll();

    List<JwOrgEntity> findByTreeLevel(int treeLevel);

    List<JwOrgEntity> findByUser(UserEntity user);

}